
#ifndef wu_ANIMATAKINECTMANAGER_H
#define wu_ANIMATAKINECTMANAGER_H

#pragma once
#include "wuAnimataKinect.h"
#include "wuKinect.h"
#include "wuBase2dManager.h"
#include "wuSkin.h"

#define ANIMALKINECT_MAX 10

class wuAnimataKinectManager : public wuBase2dManager
{
    public:
        wuAnimataKinectManager();
        ~wuAnimataKinectManager();

	    void setup(ofxBox2d * _box2d, wuKinect * _kinSkel, int _vw, int _vh);
        bool action(ofImage *currImg, ofImage *bgImg, int action, int x_offset);
//		bool capture( vector <wuSkin> * _skins);
		void update();
		void addBitxo(ofImage *_skin, ofRectangle rect, vector <ofPoint> * _pts);
        void draw(bool pinta_bg=false, int offX=0);
        void clear(void);
		void touch(int _x,int _y, int forceX=300, int forceY=0);

        void setScale(float _scale);
        void setContourAmount(int _amount);
        void setPosition(int _x, int _y);

		// box2d
//		vector <wuAnimata> animatas;
		wuAnimataKinect animata[ANIMALKINECT_MAX];
        int num_elem;

		// skins of pieces
        vector <wuSkin> skins;

//		bool bSkinOn;
		wuKinect * kinSkel;
};
#endif

